#ifndef __FG__PERFORMANCE__H__
#define __FG__PERFORMANCE__H__
#include "PluginModule/Platform.h"
#include <iostream>
#include <time.h>
namespace FragrantGrass
{
	class Performance
	{
	private:
		int64_t time = 0;
		int64_t checkTime = 0;

	public:
		Performance()
		{
			time = GetTimeMS();
		}

		bool CheckTimePoint(const int milliSecond = 1)
		{
			checkTime = GetTimeMS();
			if (checkTime > milliSecond + time)
			{
				return true;
			}

			return false;
		}

		int64_t TimeScope()
		{
			return checkTime - time;
		}
	};
}

#endif//__FG__PERFORMANCE__H__